
const { override, fixBabelImports ,addWebpackAlias } = require('customize-cra');
const path = require('path')
function pathResolve ( alias ) {
    return path.join( __dirname,  alias )
}
module.exports = override(
  addWebpackAlias({
    // ! 路径别名: 对应的绝对路径
    '@': pathResolve( './src' ),
    'gstyle': pathResolve( './src/assets' ),
    'comps': pathResolve( './src/components' ),
    'pages': pathResolve( './src/pages' ),
    'utils': pathResolve( './src/utils' ),
    'hoc': pathResolve( './src/hoc' ),
    'store': pathResolve( './src/store' ),
  }),
  fixBabelImports('import', {     
    libraryName: 'antd-mobile',     
    style: 'css',   
  }),
);